﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>站内搜索 - {site.Name}</title>
<script type="text/javascript" src="{site.Dir}_data/SysConfig.js"></script>
<script type="text/javascript" src="{site.Dir}_libs/jquery-min.js"></script>
<script type="text/javascript" src="{site.Dir}_libs/jquery.jtemplates.js"></script>
<script type="text/javascript" src="{site.Dir}scripts/jumbotcms.js?v4"></script>
<script type="text/javascript" src="{site.Dir}scripts/front.js"></script>
<script type="text/javascript" src="{site.Dir}extends/config.js"></script>
<style type="text/css">
<!--
body {
	line-height:19px;
	COLOR: #164A63;
	TEXT-ALIGN:left;
	margin: 0;
	padding:0;
}
body, ul, ol, li, p, h1, h2, h3, h4, h5, h6, form, fieldset, table, td, img, div {
	margin:0;
	padding:0;
	border:0;
}
body, ul, ol, li, p, form, fieldset, table, td {
	font-family:Verdana, Arial, Helvetica, sans-serif;
}
td, p, li, select, input, textarea, div {
	font-size:13px;
}
ul {
	list-style-type:none;
}
select, input {
	vertical-align:middle;
	padding:0;
	margin:0;
}
body>div, body>table {
	width:100%;
	margin:0;
}
h1, h2, h3, h4, h5, h6, h7, h8, h9 {
	font-size:16px;
	line-height:30px;
	font-weight:normal;
}
#top {
	height:74px;
	BACKGROUND:url(images/topbk.gif) repeat-x;
}
#top #logo {
	float:left;
	margin:8px 20px auto 10px;
}
#top #ss {
	float:left;
	margin:10px auto auto 20px;
	text-align:left;
}
#top #ss #pd {
	margin-left:6px;
	width:400px;
}
#top #ss #pd a {
	font-size:13px;
	padding-right:20px;
}
#top #ss #search {
}
#top #ss #search #input {
	font:16px Verdana;
	background:url(topinput2.gif) repeat-x 0 0;
	width:292px;
	height:19px;
	line-height:19px;
	border: solid 1px #87c1d7;
	padding:3px;
	float:left;
	color:#164A63;
	margin:0 5px 0 0;
}
#top #ss #search .input {
	font:16px Verdana;
	background:url(topinput2.gif) repeat-x 0 0;
	width:292px;
	height:27px;
	border: solid 1px #87c1d7;
	padding:3px;
	float:left;
	color:#164A63;
}
#adr {
	BACKGROUND:url(images/topline.gif) repeat-x bottom;
	height:32px;
	line-height:32px;
	margin-bottom:10px;
}
.jg {
	width:520px;
	margin:0 auto 14px 20px;
}
h1 {
	margin:0;
	padding:0;
}
h1 a {
	color:#1C93B1;
	TEXT-DECORATION: underline;
}
h1 a:hover {
	color:#1C93B1;
	TEXT-DECORATION: underline;
}
#bottom {
	width:100%;
	text-align:center;
	BACKGROUND:url(btmline.gif) repeat-x top;
	height:79px;
	margin:auto;
}
#bottom #bq {
	margin-top:36px;
	font:12px Verdana;
	color:#5B8091;
}
.float-left {
	float:left;
}
.float-right {
	float:right;
}
.left10 {
	margin-left:10px;
}
.right10 {
	margin-right:10px;
}
a {
	COLOR: #164A63;
	TEXT-DECORATION: none;
}
a:hover {
	COLOR: #164A63;
	TEXT-DECORATION: underline;
}
.cRed {
	COLOR: red;
}
.cRed a {
	COLOR: red;
}
.cRed a:hover {
	COLOR: red;
}
.yx_hl {
	COLOR: red;
}
.yx_hl a {
	COLOR: red;
}
.yx_hl a:hover {
	COLOR: red;
}
.cQING {
	COLOR: #1C93B1;
}
.cQING a {
	COLOR: #1C93B1;
}
.cQING a:hover {
	COLOR: #1C93B1;
}
/*-------------------------分页*/
.p_btns {margin: 0px 5px 4px 0px;}
.p_btns .p_bar em{line-height: 26px;}
.p_btns .p_bar{ float: left; padding-top: 3px; line-height: 17px;}
.p_btns .p_bar kbd input{float: left; width: 30px; border: 1px solid #AACCEE; height: 15px;}
.p_btns .p_bar strong{ color: #6774A8; display: block; height: 17px; float: left; padding-left: 8px; padding-right: 8px; background: #EEF7FE; border: 1px solid #AACCEE; margin-right: 2px;}
.p_btns .p_bar a{display: block; height: 17px; float: left; padding-left: 8px; padding-right: 8px; border: 1px solid #DDD; background: #FFF; text-decoration: none; margin-right: 2px; color: #000;}
.p_btns .p_bar a:hover{color: #86B9D6;}
-->
</style>
<script type="text/javascript">
(function(){
	$(document).ready(function() {
		ajaxPluginSearchList(20,1);
	});
})();
function ajaxChannelType()
{
	$("#ajaxChannelType").setTemplateElement("tplChannelType", null, {filter_data: false});
	$("#ajaxChannelType").processTemplate($$_JSON_Modules);
}
function ajaxPluginSearchList(pagesize,page)
{
	$.ajax({
		type:		"get",
		dataType:	"json",
		data:		"time="+(new Date().getTime()),
		url:		"{site.Dir}ajax/content.aspx?oper=ajaxGetList&type={$ChannelType}&ch={$ChannelId}&k="+escape('{$Keywords}')+"&pagesize="+pagesize+"&page="+page,
		error:		function(XmlHttpRequest,textStatus, errorThrown){if(XmlHttpRequest.responseText!=""){alert(XmlHttpRequest.responseText);}},
		success:	function(d){
			$("#ajaxTotalCount").text(d.recordcount);
			$("#ajaxPluginSearchList").setTemplateElement("tplList", null, {filter_data: false});
			$("#ajaxPluginSearchList").processTemplate(d);
		}
	});
}
</script>
</HEAD>
<body>
<textarea id="tplChannelType" style="display:none">
{#foreach $T.table as record}
{#if $T.record.type == q("type")}
<input id="RaChannelType_{$T.record.type}" type="radio" name="type" value="{$T.record.type}" checked="checked" />
{#else}
<input id="RaChannelType_{$T.record.type}" type="radio" name="type" value="{$T.record.type}" />
{#/if}
<label for="RaChannelType_{$T.record.type}">{$T.record.title}</label>
{#/for}
</textarea>
<div id="top"><IMG id="logo" alt="LOGO" src="images/logo.gif">
	<div id="ss">
		<form action="{site.Dir}extends/search/index.aspx" name="formsearch" method="get">
		<div id="pd">
			<span id="ajaxChannelType"></span>
			<script>ajaxChannelType();</script>
		</div>
		<div id="search">
			<input name="k" type="text" maxlength="128" size="128" id="tbKeyWord" class="input" value="{$Keywords}" />
			<span id="rfvKeyWord" style="color:Red;display:none;">请输入您要检索的关键字</span>
			<input type="image" class="float-left" src="images/btn_search.gif" alt="" border="0" />
			&nbsp; </div>
			<input type="hidden" name="ch" value="{$ChannelId}" />
		</form>
	</div>
</div>
<div id="adr"><span class="float-right right10">约 <span id="ajaxTotalCount">0</span> 项结果</span>&nbsp;&nbsp;&nbsp;&nbsp;{site.Name} 
	&gt; 搜索 &gt; “<span class="cRed">{$Keywords}</span>”的搜索结果</div>
<textarea id="tplList" style="display:none">
{#foreach $T.table as record}
<div class="jg">
	<h1><a target='_blank' href='{$T.record.url}'>{$T.record.title}</a></h1>
	{$T.record.summary}
	...<br />
	<span class="cQING"> <a target='_blank' href='{$T.record.url}'> {$T.record.url}</a>&nbsp;&nbsp;{$T.record.adddate}  </span> </div>

{#/for}
<P></P>
<P></P>
<div>{$T.pagebar}</div>
</textarea>
<div id="ajaxPluginSearchList"></div>
<P></P>
<P></P>
<div id="bottom"> <span id="bq">{site.Name}&nbsp;<span>&copy;&nbsp;2009</span>&nbsp;版权所有</span></div>
</form>
</body>
</HTML>
